package com.qianying.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 订单状态实体类
 */
@Data
@TableName("order_status")
@Schema(description = "订单状态信息")
public class OrderStatus {

    @Schema(description = "主键ID", example = "1")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "订单状态名称", example = "订单待支付")
    @TableField("status_name")
    private String statusName;

    @Schema(description = "订单状态代号", example = "PENDING_PAYMENT")
    @TableField("status_code")
    private String statusCode;

    @Schema(description = "订单状态说明", example = "订单已创建但尚未支付")
    @TableField("description")
    private String description;

    @Schema(description = "创建时间", example = "2025-08-04 10:30:00")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "更新时间", example = "2025-08-04 15:45:00")
    @TableField("update_time")
    private LocalDateTime updateTime;
}
